package com.koron.order.common.bean.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * (OrderAccept)实体类
 *
 * @author zhouj
 * @since 2021-09-06 11:35:24
 */
@Data
@ApiModel("工单验收表")
public class OrderAccept extends BaseBean {

    @NotBlank(message = "工单类型必须有值")
    @ApiModelProperty(value = "工单类型")
    private String orderType;

    @NotBlank(message = "工单id必须有值")
    @ApiModelProperty(value = "工单表ID")
    private String orderId;

    @ApiModelProperty(value = "工单验收结果")
    private Integer result;

    @ApiModelProperty(value = "服务质量等级")
    private Integer level;

    @ApiModelProperty(value = "现场验收人账户")
    private String acceptor;

    @ApiModelProperty(value = "现场验收人名称")
    private String acceptorName;

    @ApiModelProperty(value = "现场验收时间 yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date acceptTime;

    @ApiModelProperty(value = "验收意见")
    private String opinion;

    @ApiModelProperty(value = "是否提交")
    private Boolean isCommit;

    @ApiModelProperty(value = "故障现象")
    private String faultPhenomenon;

    @ApiModelProperty(value = "故障影响")
    private String faultImpact;

    @ApiModelProperty(value = "故障检测及处理")
    private String faultShooting;

    @ApiModelProperty(value = "故障原因")
    private String faultCause;

    @ApiModelProperty(value = "运行维护对策及建议")
    private String faultSuggest;

    @ApiModelProperty(value = "待验收不通过后：修改状态，待派工：WAIT_DISPATCH，执行中：IN_EXECUTE")
    private String status;

}